package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.Result;
import com.itheima.health.pojo.Permission;

import java.util.List;

/**
 * 权限服务接口
 */
public interface PermissionService {

    void add(Permission permission);

    PageResult findPage(String queryString, Integer currentPage, Integer pageSize);

    void deleteById(Integer id);

    Permission findById(Integer id);

    void edit(Permission permission);

    List<Permission> findAll();
}
